package com.jk.smartelderlycare.interfaces;

import com.jk.smartelderlycare.dto.SysField;
import com.jk.smartelderlycare.pojo.PagedResponse;
import org.springframework.web.bind.annotation.*;

/**
 * @Description 添加描述
 * @Author hhk
 * @LastChangeDate 2024/11/18 10:22
 * @Version v1.0
 */
public interface SysFieldServiceApi {
    /** 
     * @description: 字段后端分页查询
     * @param: [sysField, pageNum, pageSize]
     * @return: com.jk.smartelderlycare.pojo.PagedResponse<com.jk.smartelderlycare.dto.SysField>
     * @author hhk
     * @date: 2024/11/18 10:26
     */ 
    @PostMapping(value = "/sysField/findSysFieldPaginationList")
    public PagedResponse<SysField> findSysFieldPaginationList(@RequestBody SysField sysField, @RequestParam(value = "pageNum") Integer pageNum,@RequestParam(value = "pageSize") Integer pageSize);
    /** 
     * @description: 新增字段
     * @param: [sysField]
     * @return: void
     * @author hhk
     * @date: 2024/11/18 10:26
     */ 
    @PostMapping(value = "/sysField/addSysField")
    public void addSysField(@RequestBody SysField sysField);
    /** 
     * @description: 根据id删除一条数据 
     * @param: [fieldId]
     * @return: void
     * @author hhk
     * @date: 2024/11/18 10:27
     */ 
    @DeleteMapping(value = "/sysField/deleteSysFieldByFieldId")
    public void deleteSysFieldByFieldId(@RequestParam Long fieldId);
   /** 
    * @description: 根据id回显一条数据
    * @param: [fieldId]
    * @return: com.jk.smartelderlycare.dto.SysField
    * @author hhk
    * @date: 2024/11/18 10:30
    */ 
    @GetMapping(value = "/sysField/findSysFieldById")
    public SysField findSysFieldById(@RequestBody Long fieldId);
    /** 
     * @description: 修改字段
     * @param: [sysField]
     * @return: void
     * @author hhk
     * @date: 2024/11/18 10:30
     */ 
    @PutMapping(value = "/sysField/updataSysField")
    public void updataSysField(@RequestBody SysField sysField);
    
    /** 
     * @description: 状态修改
     * @param: [sysField]
     * @return: void
     * @author hhk
     * @date: 2024/11/18 10:32
     */ 
    @PutMapping(value = "/sysField/updateStatus")
    public void updateStatus(@RequestBody SysField sysField);
    
}
